package com.czxy.mapper;

import com.czxy.pojo.SpecOption;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author 张青卯
 */
@org.apache.ibatis.annotations.Mapper
public interface SpecOptionMapper extends Mapper<SpecOption> {

    /**
     * findSpecificationOptionBySpecificationId 查询规格
     * @param specid 品牌ID
     * @return List<SpecOption>
     */
    @Select("select * from tb_specification_option where specId = #{specid}")
    List<SpecOption> findSpecificationOptionBySpecificationId(Integer specid);

    @Select("select * from tb_specification_option where specId = #{specid}")
    List<SpecOption> findSpecificationOptionBySpecid(Integer specid);
}
